package Com.amit.Thread;

public class Lab10 extends Thread{
	
	@Override
	public void run() {
		
		System.out.println("Name:"+Thread.currentThread().getName());
		System.out.println("Daemon"+Thread.currentThread().isDaemon());
		
	}

	public static void main(String[] args) {
		
		
		Lab10 t1=new Lab10();
		Lab10 t2=new Lab10();
		
		t1.start();
		t1.setDaemon(true);
		
		t2.start();
		
		
		
		
	}

}
